package operation.constant;

/**
 * 错误代码
 * msg信息只提供中文，需要应用根据code自定义错误信息
 */
public class    AppErrorCode {

    // 请求资源不存在
    public final static int NOT_FOUND = 404;
    public final static String MSG_NOT_FOUND = "请求资源不存在";
    // 未知错误
    public final static int UNKNOWN_ERROR = 500;
    public final static String MSG_UNKNOWN_ERROR = "未知错误";

    /**
     * 数据库
     */
    // 暂无数据可供导出
    public static final int NO_DATA_TO_EXPORT = 200006;
    public static final String MSG_NO_DATA_TO_EXPORT = "暂无数据可供导出";

    /**
     * 数据导入
     */
    // 第{0}行第{1}列数据类型错误
    public final static int CELL_TYPE_ERROR = 300003;
    public final static String MSG_CELL_TYPE_ERROR = "sheet{0}第{1}行第{2}列数据类型错误";
    // 第{0}行第{1}列数据过长
    public final static int CELL_LENGTH_ERROR = 300004;
    public final static String MSG_CELL_LENGTH_ERROR = "sheet{0}第{1}行第{2}列数据过长";
    // 第{0}行第{1}列导入格式错误
    public final static int IMPORT_FORMAT_ERROR = 300006;
    public final static String MSG_IMPORT_FORMAT_ERROR = "sheet{0}第{1}行导入格式错误";
    // 数据不存在
    public final static int DB_DATA_NOT_EXIST = 200004;
    public final static String MSG_DB_DATA_NOT_EXIST = "数据不存在";
    // sheet{0}第{1}行第{2}列状态不能为空
    public final static int COMPLRETE_ERROR = 300005;
    public final static String MSG_COMPLRETE_ERROR = "sheet{0}第{1}行第{2}列状态不能为空";
    /**
     * 业务-通用业务
     */
    // ###################################################################################
    // #################################### app start ####################################

    // #################################### app end ####################################
    // #################################################################################
    // 导入的模板有误
    public final static int PARAMETER_ERROR = 401001;
    public final static String MSG_PARAMETER_ERROR = "导入的模板有误";

}
